/* 应用整体样式 */
.App {
  text-align: center;
}

/* 全局样式 */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 头部样式 */
.header {
  display: flex;
  align-items: center;
  padding: 0 20px;
  background: #001529;
  color: white;
}

.logo {
  font-size: 20px;
  font-weight: bold;
  color: white;
}

.logo .anticon {
  margin-right: 10px;
  font-size: 24px;
}

/* 侧边栏样式 */
.site-layout-background {
  background: #fff;
}

.site-sider {
  background: #001529;
}

.site-content {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 内容区样式 */
.content-container {
  padding: 24px;
  background: #fff;
  min-height: 280px;
}

/* 表单样式 */
.form-container {
  max-width: 800px;
  margin: 0 auto;
}

/* 卡片样式 */
.card-container {
  margin-bottom: 16px;
}

/* 按钮样式 */
.button-container {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

/* 地图容器样式 */
.map-container {
  height: 500px;
  margin-bottom: 20px;
}

/* 首页样式 */
.welcome-page {
  text-align: center;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

.welcome-page h1 {
  font-size: 36px;
  color: #1890ff;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.welcome-page p {
  font-size: 18px;
  color: #666;
  margin-top: 20px;
}

.cover-image {
  margin-bottom: 30px;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: relative;
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, #fff0f6, #fff0f0);
}

.cover-image img {
  width: 50%;
  max-width: 300px;
  height: auto;
  transition: transform 0.3s ease;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  display: inline-block;
}

.cover-image::before,
.cover-image::after {
  content: "爱你爱你";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: bold;
  color: #ff4d4f;
  display: flex;
  align-items: center;
}

.cover-image::before {
  left: 15%;
}

.cover-image::after {
  right: 15%;
}

.cover-image .love-icon-left,
.cover-image .love-icon-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: #ff4d4f;
}

.cover-image .love-icon-left {
  left: 5%;
}

.cover-image .love-icon-right {
  right: 5%;
}

.cover-image .heart-float {
  position: absolute;
  animation: float 3s infinite ease-in-out;
  color: #ff4d4f;
  font-size: 16px;
}

.cover-image .heart-float:nth-child(1) {
  top: 20%;
  left: 25%;
  animation-delay: 0s;
}

.cover-image .heart-float:nth-child(2) {
  top: 30%;
  right: 30%;
  animation-delay: 0.5s;
}

.cover-image .heart-float:nth-child(3) {
  bottom: 25%;
  left: 30%;
  animation-delay: 1s;
}

.cover-image .heart-float:nth-child(4) {
  bottom: 20%;
  right: 25%;
  animation-delay: 1.5s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.cover-image img:hover {
  transform: scale(1.05);
}

.heart-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
  padding: 15px 25px;
  background-color: #fff2f0;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2);
  animation: pulse 1.5s infinite alternate;
}

.heart-icon {
  color: #ff4d4f;
  font-size: 24px;
  margin: 0 5px;
}

.heart-text {
  font-size: 24px;
  font-weight: bold;
  color: #ff4d4f;
  margin: 0 10px;
}

@keyframes pulse {
  from {
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2);
  }
  to {
    box-shadow: 0 2px 12px rgba(255, 107, 107, 0.4);
  }
}

/* 其他页面样式 */
.ant-table {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ant-btn-primary {
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(24, 144, 255, 0.2);
}

.ant-btn-primary:hover {
  box-shadow: 0 4px 8px rgba(24, 144, 255, 0.3);
}

.ant-card {
  border-radius: 8px;
  overflow: hidden;
}

.ant-form-item {
  margin-bottom: 16px;
}

/* 响应式布局 */
@media (max-width: 768px) {
  .responsive-flex {
    flex-direction: column;
  }
  
  .site-layout-background {
    width: 100% !important;
  }
}
